#########################################​######################################
# @file CMakeLists.txt
#
# @details HexGame source project CMake file.
#
# @if REVISION_HISTORY_INCLUDED
# @par Edit History
# @li zhalat 27-SEP-2014 Initial revision of file.
# @endif
#
# @par Copyright (c) 2014 HalSoft
#
# @ingroup:
#
#########################################​######################################

cmake_minimum_required( VERSION 2.6 )

# Define project name
project( HexGame )

# Additional CXX flags
set( ${PROJECT_NAME_UPPERCASE}_CXX_FLAGS -std=gnu++0x -mno-align-double )

# Additional test definitions
set( ${PROJECT_NAME_UPPERCASE}_DEFINE
    #your macros
)

# Set type building Debug/Release
SET( CMAKE_BUILD_TYPE Release )

# Set project root
set( CMAKE_PROJECT_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )

# Set path directories
set ( PROJ_HEADERS "${CMAKE_PROJECT_ROOT}/Headers" )
set ( PROJ_SOURCES "${CMAKE_PROJECT_ROOT}/Sources" )

# Define Sources
set( ${PROJECT_NAME_UPPERCASE}_SRC
    "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
    "${PROJ_SOURCES}/HexGame.cpp"
    "${PROJ_SOURCES}/Graph.cpp"
    "${PROJ_SOURCES}/FindAndUnion.cpp"
    "${PROJ_SOURCES}/Board.cpp"
)

# Define the path to the includes
set( ${PROJECT_NAME_UPPERCASE}_INCLUDE
    "${PROJ_HEADERS}"
)

include_directories(${${PROJECT_NAME_UPPERCASE}_INCLUDE})
add_executable( HexGame ${${PROJECT_NAME_UPPERCASE}_SRC} )
